package cc.magicjson.minigame.demo.ddd.domain.model;

public record GameName(String value) {
    public GameName {
        if (value == null || value.trim().isEmpty()) {
            throw new IllegalArgumentException("Game name cannot be empty");
        }
        if (value.length() > 50) {
            throw new IllegalArgumentException("Game name cannot be longer than 50 characters");
        }
    }
}